<div class="row-fluid">
<form method="post" action="<?php echo url_for("@order_list") ?>">
<input type="hidden" name="func" value="update" />
<div class="row-fluid">
<table cellpadding="0" cellspacing="0" border="0" class="responsive dynamicTableNoSort display table table-bordered showAll" width="100%">
    <thead>
        <tr>
        	<th>
            	<span>#</span>
            </th>
            <th>
            	<span>Tên</span>
            </th>
            <th>
            	<span>Email</span>
            </th>
            <th>
            	<span>Quốc gia</span>
            </th>
            <th>
            	<span>Ngày đi</span>
            </th>
            <th>
            	<span>Ngày tạo</span>
            </th>
            <th>
            	<span>Tổng giá trị</span>
            </th>
            <th class="ch masterCh">
            	<input type="checkbox" name="checkbox" value="all">
            </th>
        </tr>
    </thead>
    <tbody>
    	<?php 
		$status = 0;
		foreach ($orderList as $order)
		{
			$status = $order['status'];
		?>
        <tr class="tr_order_list">
        	<td><a class="tip" title="Xem chi tiết đơn hàng" href="<?php echo url_for("@order_detail?order_id=".$order['order_id']); ?> "><?php echo $order['order_id'] ?></a></td>
            <td><?php echo $order['fullname']?></td>
            <td><?php echo $order['email']?></td>
            <td><?php echo $order['country']?></td>
            <td><?php echo format_date($order['date_arrival'])?></td>
            <td><?php echo format_date($order['created_at'])?></td>
            <td><?php echo format_number($order['total_price'], "vi_VN") ?></td>
            <td class="chChildren">
                <input type="checkbox" name="order_status_<?php echo $order['order_id'] ?>" class="cbo_order" value="on" />
            </td>
        </tr>
        <?php
		}
		?>
    </tbody>
</table>
</div>
<div class="row-fluid">
	<div class="form-actions">
        <div class="span4"></div>
        <div class="span8">
            <button class="btn btnUpdateOrder"><?php echo ($status==0)?"Xác nhận hoàn thành":"Xác nhận đơn hàng đang chờ"?></button>
            <button class="btn btn-danger">Làm lại</button>
        </div>
    </div>
</div>
</form>